import Vue from 'vue'
import Router from 'vue-router'

import VideoList from './views/VideoList'
import VideoDetail from './views/VideoDetail'
Vue.use(Router)

export default new Router({
    // mode: 'history', // require service support
    scrollBehavior: () => ({ y: 0 }),
    routes: [
        {
            path: '/videoList',
            component: VideoList,
        },
        {
            path: '/videoDetail/:id',
            component: VideoDetail,
        },
    ]
})